/*
 * Copyright (c) 2005 - 2007 metadude.com, All rights reserved.
 * Email: community@polarion.org
 *
 * This program and the accompanying materials are made available under the
 * terms of the GNU General Public License 2.0 (the "License"). You may not use
 * this file except in compliance with the License. Copy of the License is
 * located in the file LICENSE.txt in the project distribution. You may also
 * obtain a copy of the License at http://www.gnu.org/licenses/gpl.html
 *
 *
 * METADUDE.COM MAKES NO REPRESENTATIONS OR WARRANTIES
 * ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESSED OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. POLARION SOFTWARE
 * SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT
 * OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 *
 */

using mshtml;

namespace poba.Core.Html {
    public class AnchorElement : Element {
        private IHTMLAnchorElement _anchor;

        public string Href {
            get { return _anchor.href; }
        }

        public string Target {
            get { return _anchor.target; }
        }

        public AnchorElement(IHTMLElement element) : base(element) {
            _anchor = (IHTMLAnchorElement) element;
        }

        public void Blur() {
            _anchor.blur();
        }

        public void Focus() {
            _anchor.focus();
        }
    }
}